﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynamicAspectTester.Mocks
{
    class TargetClass
    {
        List<string> names = new List<string>();

        public string Name { get; set; }

        public string this[int index] 
        {
            get { return names[index]; }
            set { names[index] = value; }
        }

        public void Greeting() { }

        public void Greeting(string s) 
        {
            if (string.IsNullOrEmpty(s))
                throw new ArgumentNullException("s");
        }
        public string Greeting(string s1, string s2) { return s1 + s2; }
    }
}
